package com.yict.csms.baseInfo.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "CSMS_PER_ORDER_SET_LINE")
public class PerOrderSetLine {

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "csms_per_order_set_line_seq")
	@SequenceGenerator(name = "csms_per_order_set_line_seq", sequenceName = "SEQ_CSMS_PER_ORDER_SET_LINE", allocationSize = 1, initialValue = 1)
	@Column(name = "LINEID")
	private long lineid;
	
	//@Column(name = "SETID")
	//private long setid;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="SETID")
	private PersonOrderSet personOrderSet;
	
	@Column(name = "PROFEID")
	private long profeid;
	
	@Column(name = "STATIONID")
	private long stationid;
	
	@Column(name = "COMPANYID")
	private long companyid;
	
	@Column(name = "INPUTTYPE")
	private String inputtype;
	
	@Column(name = "ORDERQUANTITY")
	private BigDecimal orderquantity;
	
	@Column(name = "ORDERDOQUAN")
	private BigDecimal orderdoquan;
	
	@Column(name = "ALLORDERQUAN")
	private BigDecimal allorderquan;
	
	@Column(name = "ORDERBEGINDATE")
	private Date orderbegindate;
	
	@Column(name = "ORDERENDDATE")
	private Date orderenddate;
	
	@Column(name = "REMOVALTIME")
	private BigDecimal removaltime;
	
	@Column(name = "REMOVALREASON")
	private String removalreason;
	
	@Column(name = "CREATEPERSON")
	private long createperson;
	
	@Column(name = "CREATEDATE")
	private Date createdate;
	
	@Column(name = "UPDATEPERSON")
	private long updateperson;
	
	@Column(name = "UPDATEDATE")
	private Date updatedate;
	
	public long getLineid() {
		return lineid;
	}
	public void setLineid(long lineid) {
		this.lineid = lineid;
	}
	/*public long getSetid() {
		return setid;
	}
	public void setSetid(long setid) {
		this.setid = setid;
	}*/
	public long getProfeid() {
		return profeid;
	}
	public PersonOrderSet getPersonOrderSet() {
		return personOrderSet;
	}
	public void setPersonOrderSet(PersonOrderSet personOrderSet) {
		this.personOrderSet = personOrderSet;
	}
	public void setProfeid(long profeid) {
		this.profeid = profeid;
	}
	public long getStationid() {
		return stationid;
	}
	public void setStationid(long stationid) {
		this.stationid = stationid;
	}
	public long getCompanyid() {
		return companyid;
	}
	public void setCompanyid(long companyid) {
		this.companyid = companyid;
	}
	public String getInputtype() {
		return inputtype;
	}
	public void setInputtype(String inputtype) {
		this.inputtype = inputtype;
	}
	public BigDecimal getOrderquantity() {
		return orderquantity;
	}
	public void setOrderquantity(BigDecimal orderquantity) {
		this.orderquantity = orderquantity;
	}
	public BigDecimal getOrderdoquan() {
		return orderdoquan;
	}
	public void setOrderdoquan(BigDecimal orderdoquan) {
		this.orderdoquan = orderdoquan;
	}
	public BigDecimal getAllorderquan() {
		return allorderquan;
	}
	public void setAllorderquan(BigDecimal allorderquan) {
		this.allorderquan = allorderquan;
	}
	public Date getOrderbegindate() {
		return orderbegindate;
	}
	public void setOrderbegindate(Date orderbegindate) {
		this.orderbegindate = orderbegindate;
	}
	public Date getOrderenddate() {
		return orderenddate;
	}
	public void setOrderenddate(Date orderenddate) {
		this.orderenddate = orderenddate;
	}
	public BigDecimal getRemovaltime() {
		return removaltime;
	}
	public void setRemovaltime(BigDecimal removaltime) {
		this.removaltime = removaltime;
	}
	public String getRemovalreason() {
		return removalreason;
	}
	public void setRemovalreason(String removalreason) {
		this.removalreason = removalreason;
	}
	public long getCreateperson() {
		return createperson;
	}
	public void setCreateperson(long createperson) {
		this.createperson = createperson;
	}
	public Date getCreatedate() {
		return createdate;
	}
	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	public long getUpdateperson() {
		return updateperson;
	}
	public void setUpdateperson(long updateperson) {
		this.updateperson = updateperson;
	}
	public Date getUpdatedate() {
		return updatedate;
	}
	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}
}
